﻿using Newtonsoft.Json;

namespace EduAssess.Models;

public class Answer
{
    [JsonIgnore]
    public Guid Id { get; set; }
    public string Name { get; set; }
    public bool IsTrue { get; set; }
    public Answer()
    {
        Id = Guid.NewGuid();
    }

    public bool IsCorrectAnswer()
    {
        return !string.IsNullOrWhiteSpace(Name);
    }
}
